﻿using System;
using System.Linq;
using System.Data.Linq;

using Fuse8.DomainFramework.Domain;

namespace Fuse8.DomainFramework.DataAccess.LinqDatabase
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <typeparam name="TRepository"></typeparam>
    public interface ILinqEntityDataRepositoryMapper<TEntity, TRepository> : IEntityDataRepositoryMapper<TEntity, TRepository>
        where TEntity : class, IEntityObject
        where TRepository : class
    {
        /// <summary>
        /// Parameter used for query access
        /// </summary>
        string QueryParameter { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        IQueryable<TEntity> AsQueryable(DataContext context);
    }
}
